package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Orders;
import com.itheima.common.PageParam;

import java.util.List;
import com.itheima.common.PageParam;
import com.itheima.dto.OrdersDto;

public interface OrderService {

    IPage<Orders> findpage (PageParam pageParam);

    /**
     * 提交订单
     * @param order
     * @return
     */
    int add(Orders order);



    /**
     * 最新订单查看
     * @param pageParam
     * @return
     */
    IPage<OrdersDto> newestOrder(PageParam pageParam);

    int paisong(Orders order);
}
